import TYPES from '@redux/config/action_types.js';

const TESTPAGEDATAS = (state = {}, action) => {
    let {type, payload} = action;
    switch (type) {
        case TYPES.TEST_TREES:
            let testTree = payload;
            return {...state, testTree};
        case TYPES.TEST_ORIGS:
            let subList = payload;
            return {...state, subList};
        default:
            return state;
    }
};

export default {
    TESTPAGEDATAS
}